Interaction.Id Property

Gets or sets the unique identifier of this interaction.

Parent Type: Interaction

Namespace: Microsoft.LearningComponents.DataModel

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public string Id

{ get; set; }
Exceptions
Exception type Condition
InvalidOperationException

Thrown if this LearningDataModel object cannot be written to or if this interaction is already part of a list.

ArgumentException

In SCORM 2004 packages, thrown if the value passed is empty or is a duplicate, or if the string is not a valid URI. In SCORM 1.2 packages, this is thrown if the value passed is empty or if any of the characters in the string are not alphanumeric or - or _.

ArgumentOutOfRangeException

Thrown if the string passed is longer than BaseSchemaInternal.InteractionItem.MaxInteractionIdFromCmiLength characters in SCORM 2004 packages, or longer than 255 in SCORM 1.2 packages.

Remarks

In SCORM 2004, this corresponds to cmi.interactions.n.id.

In SCORM 1.2, this corresponds to cmi.interactions.n.id.

This property represents the unique string identifier for this interaction. This identifier is only required to be unique within the context of this particular data model.

This value must be set prior to this object's insertion into the LearningDataModel.Interactions list.